#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>

int main() {
    pid_t pid;
    pid = fork();

    if (pid < 0) {
        perror("fork");
        return -1;
    } else if (pid == 0) {
        printf("this is child\n");
        execl("/bin/bash", "bash", "-c", "./1.sh", NULL);
    } else if (pid > 0) {
        printf("this is father\n");
        wait(NULL);
    }

    return 0;
}
